package com.t4.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    LOGIN_AUTH(208, "认证失败"),
    LOGIN_ERROR(205, "登录失败"),
    PERMISSION(209, "没有权限");


    // 返回码
    private Integer code;

    // 返回消息
    private String message;

    private ResultCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
